﻿{extends file="../home.html"}

{block name="title"}{$head_title}{/block}
	
{block name="css"}
{/block}

{block name="content"}
<!--s主内容-->
<section class="content-wrapper">
  <div class="content-container container">
  	<!-- s面包屑导航 -->
  	{include file="../breadcrum_nav.html"}
  	<!-- e面包屑导航 -->
    <!-- s分类 -->
    <div class="col-left">
    {include file="../common_personal_nav.html"}
	</div>	
    <!-- e分类 -->
    <!-- s主内容 -->
    <div class="col-main">
		{include file="../common_personal_header.html"}
		<div class="user-main">
			<!-- s订单详情 -->
			<div class="mb10">
				<span>订单号：<span class="red">{$order_info.order_sn}</span></span>	
				<span>下单时间：<span class="mr10">{if $order_info.addtime}{$order_info.addtime|date_format:"%Y-%m-%d %H:%M:%S"}{else}--{/if}</span></span>	
				<span>支付状态：<span class="mr10">{if $order_info.order_status == OrderModel::PRE_PAY}未支付{else}已支付{/if}</span></span>	
				<span>支付时间：<span>{if $order_info.pay_time}{$order_info.pay_time|date_format:"%Y-%m-%d %H:%M:%S"}{else}--{/if}</span></span>	
			</div>
			<!-- s收货管理 -->
			<table class="table table-bordered table-condensed">
				<thead>
					<tr>
						<th>收货管理</th>
					</tr>
				</thead>
		        <tbody>
		          <tr>
		            <td class="dark_yellow">收货人姓名：</td>
		            <td>{$order_info.consignee}</td>
		            <td class="dark_yellow">收货人Email:</td>
		            <td>{$order_info.email}</td>
		          </tr>
		          <tr>
		            <td class="dark_yellow">收货地址：</td>
		            <td>{$order_info.area_string}</td>
		            <td class="dark_yellow">固定电话：</td>
		            <td>{$order_info.tel}</td>
		          </tr>
		          <tr>
		            <td class="dark_yellow">手机：</td>
		            <td>{$order_info.mobile}</td>
		            <td class="dark_yellow">订单留言：</td>
		            <td>{$order_info.user_remark}</td>
		          </tr>
		        </tbody>
		      </table>
				<!-- e收货管理 -->
				<!-- s购买的商品 -->
			<table class="table table-bordered table-striped">
				<thead>
					<tr>
						<th>购买的商品</th>
					</tr>
				</thead>
				<thead>
					<tr>
						<th>序号</th>
						<th>商品名称</th>
						<!-- <th>规格</th> -->
						<th>数量</th>
						<th>单价</th>
						<th>小计</th>
						<!-- <th>获得积分</th> -->
					</tr>
				</thead>
		        <tbody>
				{foreach from=$order_info['order_item_list'] name=loop key=key item=item}
		          <tr>
		            <td>{$smarty.foreach.loop.iteration}</td>
		            <td><a href="{$item_detail_link}{$item.item_id}">{$item.item_name}</a></td>
		            <!-- <td>--</td> -->
		            <td>{$item.number}</td>
		            <td>￥{$item.real_price}</td>
		            <td>￥{$item.total_price}</td>
		            <!-- <td>{$item.get_integral}</td> -->
		          </tr>
		        {/foreach}
		        </tbody>
		      </table>
				<!-- e购买的商品 -->
				<!-- s金额总计 -->
				<div class="well">
					<div class="mb20">
					<span class="fs15">金额总计：</span><span class="red">{$order_info.pay_amount}</span>元
					</div>
					<div>订单支付成功后你获得<span class="red">{$order_info.total_integral}</span>积分</div>
				</div>
				<!-- e金额总计 -->

		     
		      <!-- e订单详情 -->
		</div>
	</div>
	<div class="clearfix"></div>
    <!-- e主内容 -->
  </div>
</section>
<!--e主内容-->
{/block}

{block name="js"}
{/block}
